package com.kedacom.demo.healthcheck;

import java.util.ArrayList;
import java.util.List;

/**
 * 健康检查结果
 * @author luocanfeng
 * @date 2016年9月2日
 */
public class HealthCheckResult {

	private String appVersion;
	private String status = HealthCheck.STATUS_OK;
	private List<HealthCheckItemResult> results = new ArrayList<HealthCheckItemResult>();

	public HealthCheckResult() {
	}

	public HealthCheckResult(String appVersion) {
		this.appVersion = appVersion;
	}

	public HealthCheckResult(String appVersion, String status) {
		this.appVersion = appVersion;
		this.status = status;
	}

	public HealthCheckResult(String appVersion, String status, List<HealthCheckItemResult> results) {
		this.appVersion = appVersion;
		this.status = status;
		this.results = results;
	}

	public String getAppVersion() {
		return appVersion;
	}

	public void setAppVersion(String appVersion) {
		this.appVersion = appVersion;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public List<HealthCheckItemResult> getResults() {
		return results;
	}

	public void setResults(List<HealthCheckItemResult> results) {
		this.results = results;
	}

}
